package com.sunjob.mromessage.service;

import com.sunjob.common.domain.loginServer.SysMenu;
import com.sunjob.common.domain.loginServer.SysRole;
import com.sunjob.common.domain.loginServer.SysUser;
import com.sunjob.common.domain.message.SysNotice;
import com.sunjob.common.domain.message.SysNoticeReceive;
import com.sunjob.common.domain.message.SysNoticeSelector;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author : Wangzurong
 * @create 2022-08-05 15:02
 */
@Service
public interface MroMessageService {

    boolean pushNoticeBySelector(SysNoticeSelector sysNoticeSelector);

    List<SysNotice> pullNoticeByUserId(Long userId,Integer type);
    List<SysRole> getRoleListByUserId(Long userId);
    List<SysMenu> getMenuListByUserId(Long userId);

    List<SysNotice> findAllNotice();

    List<SysNotice> findAllAnnouncement();

    List<SysNotice> findAllInform();

    SysNotice queryAnnouncementOrInformById(long notice_id);

    List<SysNotice> queryAnnouncementOrInformByCreator(String Creator);

    List<SysNotice> queryNoticeBy(SysNotice sysNotice);

    void updateNotice(SysNotice sysNotice);

    void deleteNoticeById(Long noticeId);

    void deleteNoticeByReceiveNoticeId(Long receiveNoticeId);

    void updateNoticeReceiveBy(SysNoticeReceive sysNoticeReceive);


}